import request from '@/utils/request';

// 查询三级分销列表
export function listDistribution(query) {
	return request({
		url: '/account/distribution/list',
		method: 'post',
		data: query,
	});
}

// 查询三级分销详细
export function getDistribution(id) {
	return request({
		url: '/account/distribution/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增三级分销
export function addDistribution(data) {
	return request({
		url: '/account/distribution/add',
		method: 'post',
		data: data,
	});
}

// 编辑三级分销
export function updateDistribution(data) {
	return request({
		url: '/account/distribution/edit',
		method: 'post',
		data: data,
	});
}

// 删除三级分销
export function delDistribution(id) {
	return request({
		url: '/account/distribution/remove',
		method: 'post',
		data: id,
	});
}

// 导出三级分销
export function exportDistribution(query) {
	return request({
		url: '/account/distribution/export',
		method: 'post',
		params: query,
	});
}
